<?php
// +----------------------------------------------------------------------
// |系统配置model
// +----------------------------------------------------------------------
namespace app\common\Model;

use think\Model;
use think\facade\Db;

class ConfigModel extends Model{

    protected $name = 'config';
    // 表主键
    protected $pk = 'id';

    /* 快递服务商列表
    * @param array $param 前台传过来的参数  
    * @return array
    */
    function getConfigist($code){
    

        $field =  'values';          
        $where = [];
        if(isset($code) ){
            $where[] = ['code','=',$code];
        }
        $data = Db::name('config')->field($field)->where($where)->find();  
        return $data;

    }

}